public class  GUI 
{	
	public static void main(String[] args) {
		
		
		int i=0;
		int j=0;
		login log = new login();
		LogInOut loginout = new LogInOut();
		SeatingManagement seats = new SeatingManagement();
		OrderManagement orders = new OrderManagement();
    	Buttons buttons = new Buttons(log);
    	BusBoy bus = new BusBoy(seats, log);
    	Hostess host = new Hostess(seats, log);
    	Waitress waiter = new Waitress(seats,log, orders);
    	Chef chef = new Chef(log, orders);
    	Manager man = new Manager(log, orders, seats, loginout);
    	Menu menu = new Menu();
    	
    	
    	buttons.setVisible(true);
		while(buttons.isVisible()==true)
			{
			}
    	
    		while (i==0)
    		{	
    			System.out.println(j);
    			j++;
    		
    			if(loginout.logIN(log.getuid()).equals("Busboy"))
    			{
    				bus.refresh();
    				bus.setVisible(true);
    				while(bus.isVisible()==true)
    					{
    					}
    			}
    			
    			else if(loginout.logIN(log.getuid()).equals("Host"))
    			{
    				host.refresh();
    				host.setVisible(true);
    				while(host.isVisible()==true)
    					{
    					}
    			}
    			
    			else if(loginout.logIN(log.getuid()).equals("Waiter"))
    			{
    				waiter.refresh();
    				waiter.setVisible(true);
    				while(waiter.isVisible()==true)
    					{
    					}
    			}
    			
    			else if(loginout.logIN(log.getuid()).equals("Chef"))
    			{
    				chef.refresh(0);
    				chef.setVisible(true);
    				while(chef.isVisible()==true)
    					{
    					}
    			}
    			
    			else if(loginout.logIN(log.getuid()).equals("Manager"))
    			{
    				man.refresh();
    				man.setVisible(true);
    				while(man.isVisible()==true)
    					{
    					}
    			}
    			
    			else
    				{	
    					buttons.setVisible(true);
    					while(buttons.isVisible()==true)
    						{
    						}
    				}
    		
    		}
    	
	}
}